<template>
  <div id="maintitle">
    <h1>新闻管理系统</h1>
    <div id="mainbody">
      <div v-for="(list,index) in list" :key="index">
        <ListTextArea/>
      </div>
      <ListAdd/>
    </div>

  </div>
</template>

<script>
import ListAdd from "../components/ListAdd";
import ListTextArea from "../components/ListTextArea";
export default {
  name: "NewsSystem",
  data(){
    return{
      list:[""],
    };
  },
  components: {ListAdd,ListTextArea},
  methods:{
    addListItem(){
      // console.log("11")
      this.list.push("")
    },
    deleteItem(){
      this.list.pop()
    }
  }
}
</script>

<style scoped>
#maintitle{
  margin: auto;
  width: 800px;
}
#mainbody{
  width: 700px;
  height: 800px;
  margin:0 auto;
  background-color: aliceblue;
  display: block;
}
#mainbody ListAdd{
  float: left;
  margin: 40px 10px 10px 10px;
}
#mainbody div{
  float: left;
  margin:10px;
}
h1{
  text-align: center;
}

</style>